
/**
 * Project Name:cats-zcjc
 * File Name:Station.java
 * Package Name:com.catsic.zcjc.entity
 * Date:2017年10月26日下午4:24:18
 * Copyright (c) 2017, oa.catsic.com All Rights Reserved.
 */
 
package com.catsic.zcjc.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.catsic.base.BaseEntity;


/**
 * ClassName: EquipFileData
 * Description: 设备数据附件实体类
 * date: 2017年10月26日 下午4:24:18
 * author: xietiebing
 */
@Entity
@Table(name="T_EQUIP_FILE_DATA")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class EquipFileData extends BaseEntity implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = -6570776338207616422L;

	
	/**
	 * filePath:文件路径
	 */
	@Column(name="FILE_PATH")
	private String filePath;
	
	/**
	 * fileName:文件名称
	 */
	@Column(name="FILE_NAME")
	private String fileName;
	
	/**
	 * fileDesc:内容简介
	 */
	@Column(name="FILE_DESC")
	private String fileDesc;
	
	/**
	 * type:1:车头照片、2:车尾照片、3:全车照片、4:电子文书、5:视频
	 */
	@Column(name="TYPE")
	private Integer type;
	
	
	
	/**
	 * equipData:所属设备数据
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="DATA_ID",referencedColumnName = "ID")
	private EquipData equipData;



	public String getFilePath() {
		return filePath;
	}



	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}



	public String getFileName() {
		return fileName;
	}



	public void setFileName(String fileName) {
		this.fileName = fileName;
	}



	public String getFileDesc() {
		return fileDesc;
	}



	public void setFileDesc(String fileDesc) {
		this.fileDesc = fileDesc;
	}



	public Integer getType() {
		return type;
	}



	public void setType(Integer type) {
		this.type = type;
	}



	public EquipData getEquipData() {
		return equipData;
	}



	public void setEquipData(EquipData equipData) {
		this.equipData = equipData;
	}



	@Override
	public String toString() {
		return "EquipFileData [filePath=" + filePath + ", fileName=" + fileName + ", fileDesc=" + fileDesc + ", type="
				+ type + ", equipData=" + equipData + "]";
	}

	

}
